package com.example.aidocengine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aidocengine.pojo.entity.SecondaryDeviceTerminology;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SecondaryDeviceTerminologyMapper extends BaseMapper<SecondaryDeviceTerminology> {
    
    /**
     * 根据关键字模糊匹配术语
     */
    List<SecondaryDeviceTerminology> selectByKeywordLike(@Param("keyword") String keyword);
    
    /**
     * 获取所有有效的二次设备术语
     */
    List<SecondaryDeviceTerminology> selectAllActive();
    
    /**
     * 批量插入术语数据
     */
    int insertBatch(@Param("terminologyList") List<SecondaryDeviceTerminology> terminologyList);
}